<include file="public/layout" />
<style>
    body{
        background-color: rgb(141 134 134 / 10%);
        padding-top: 20px;
    }
    .layui-col-sm6,.layui-col-sm12{padding-top:0;padding-left:0}
</style>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <blockquote class="layui-elem-quote" style="background-color: #ffffff;{if $businessStatus == 'expire'}border-left-color: red;{/if}">到期时间：{:date('Y-m-d H:i',$businessEndtime)}</blockquote>

        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-header">会员总数<span style="float:right;color:#666">今日新增&nbsp;{:number_format($memberThisDayCount)}</span></div>
                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font" style="cursor:pointer" onclick="location.href='{:url('users/index')}'">{:number_format($memberCount)}</p>
                    <p>昨日新增 <span class="layuiadmin-span-color">{:number_format($memberLastDayCount)}</span></p>
                    <p>本月新增 <span class="layuiadmin-span-color">{:number_format($memberThisMonthCount)}</span></p>
                </div>
            </div>
        </div>

        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-header">商品数量</div>
                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font" style="cursor:pointer" onclick="location.href='{:url('Goods/index')}'">{:number_format($goodsCount)}</p>
                    <p>未上架 <span class="layuiadmin-span-color">{:number_format($goodsNoOnCount)}</span></p>
                    <p>已上架 <span class="layuiadmin-span-color">{:number_format($goodsOnCount)}</span></p>
                </div>
            </div>
        </div>

        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-header">订单数<span style="float:right;color:#666">今日新增&nbsp;{:number_format($orderThisDayCount)}</span></div>
                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font" style="cursor:pointer" onclick="location.href='{:url('Order/index')}'">{:number_format($orderCount)}</p>
                    <p>昨日新增 <span class="layuiadmin-span-color">{:number_format($orderLastDayCount)}</span></p>
                    <p>本月新增 <span class="layuiadmin-span-color">{:number_format($orderThisMonthCount)}</span></p>
                </div>
            </div>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="layui-card">
                <div class="layui-card-header">货款钱包<span style="float:right;color:#666">今日新增&nbsp;{:number_format($s_money_today)}</span></div>
                <div class="layui-card-body layuiadmin-card-list">
                    <p class="layuiadmin-big-font" style="cursor:pointer" onclick="location.href='{:url('Caiwu/s_money_log')}'">{:number_format($s_money)}</p>
                    <p>昨日新增 <span class="layuiadmin-span-color">{:number_format($s_money_lastday)}</span></p>
                    <p>本月新增 <span class="layuiadmin-span-color">{:number_format($s_money_thismonth)}</span></p>
                </div>
            </div>
        </div>
        <div class="layui-col-md12">
            <table cellpadding="0" cellspacing="0" class="layui-table">
                <caption class="text-left margin-bottom-15 font-s14">会员钱包余额统计</caption>
                <tbody>
                    <tr>
                        <foreach name="money" item="val">
                            <td class="gray_bg">{$key}</td>
                        </foreach>
                    </tr>
                    <tr>
                        <foreach name="money" item="val">
                            <td >{$val}</td>
                        </foreach>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="layui-col-md12">
            <table cellpadding="0" cellspacing="0" class="layui-table">
                <caption class="text-left margin-bottom-15 font-s14">类型统计</caption>
                <tbody>
                <tr>
                    <foreach name="cwary" item="val">
                        <td class="gray_bg">{$key}</td>
                    </foreach>
                </tr>
                <tr>
                    <foreach name="cwary" item="val">
                        <td >{$val}</td>
                    </foreach>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="layui-col-md12">
            <table cellpadding="0" cellspacing="0" class="layui-table">
                <caption class="text-left margin-bottom-15 font-s14">公司收支</caption>
                <tbody>
                <tr>
                    <td class="gray_bg">在线支付</td>
                    <td class="gray_bg">在线充值</td>
                    <td class="gray_bg">汇款充值</td>
                    <td class="gray_bg">未提现</td>
                    <td class="gray_bg">已提现</td>
                    <td class="gray_bg">公司盈利</td>
                </tr>
                <tr>
                    <td >{$payment['zxzf']}</td>
                    <td >{$payment['zxcz']}</td>
                    <td >{$payment['kkcz']}</td>
                    <td >{$payment['wtx']}</td>
                    <td >{$payment['ytx']}</td>
                    <td >{$payment['gsyl']}</td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="layui-col-md6">
            <div class="think-box-shadow">
                <table class="layui-table" lay-skin="line" lay-even>
                    <caption class="text-left margin-bottom-15 font-s14">系统信息</caption>
                    <colgroup>
                        <col width="30%">
                    </colgroup>
                    <tbody>
                    <tr>
                        <td>当前程序版本</td>
                        <td>1.1.1</td>
                    </tr>
                    <tr>
                        <td>运行PHP版本</td>
                        <td>{$Think.PHP_VERSION}</td>
                    </tr>
                    <tr>
                        <td>ThinkPHP版本</td>
                        <td>{$think_ver}</td>
                    </tr>
                    <tr>
                        <td>MySQL数据库版本</td>
                        <td>{$mysql_ver}</td>
                    </tr>
                    <tr>
                        <td>服务器操作系统</td>
                        <td>{:php_uname('s')}</td>
                    </tr>
                    <tr>
                        <td>WEB运行环境</td>
                        <td>{:php_sapi_name()}</td>
                    </tr>
                    <tr>
                        <td>上传大小限制</td>
                        <td>{:ini_get('upload_max_filesize')}</td>
                    </tr>
                    <tr>
                        <td>POST大小限制</td>
                        <td>{:ini_get('post_max_size')}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>


</body>
</html>